home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Utilities / MView / gxu / edgeoutline.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-30  |  951 b   |  43 lines

  1. #pragma once
  2.  
  3. #ifndef EDGEOUTLINE_H
  4. #define EDGEOUTLINE_H
  5.  
  6. /*//////////////////////////////////////////////////////////////////////////////
  7. //
  8. // File: edgeoutline.h
  9. //
  10. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  11. //
  12. //
  13. //////////////////////////////////////////////////////////////////////////////*/
  14.  
  15. #include "gxcrackfvf.h"
  16.  
  17. class CEdgeOutline
  18. {
  19. public:
  20.     CEdgeOutline();
  21.     ~CEdgeOutline();
  22.  
  23.     HRESULT Init(LPD3DXBASEMESH ptmDrawMesh, DWORD *rgdwAdjacency);
  24.     HRESULT Draw(LPD3DXBASEMESH ptmDrawMesh, DWORD iSubset);
  25.  
  26. private:
  27.     HRESULT CreateEmptyOutline();
  28.  
  29.     LPDIRECT3DDEVICE9 m_pDevice;
  30.     LPDIRECT3DINDEXBUFFER9 m_pIndexBuffer;
  31.  
  32.     LPDIRECT3DVERTEXDECLARATION9 m_pDeclObj;
  33.     D3DVERTEXELEMENT9 m_pDecl[MAX_FVF_DECL_SIZE];
  34.     DWORD m_cBytesPerVertex;
  35.  
  36.     D3DXATTRIBUTERANGE *m_rgaeAttributeTable;
  37.     DWORD m_caeAttributeTable;
  38.  
  39.     BOOL m_bEmulate32BitIndex;
  40. };
  41.  
  42. #endif
  43.